Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
remove static declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
linkensphere201 committed Jul 14, 2021
1 parent 3bb06c9 commit 9c35b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/processors/BaseProcessor.inl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ErrorOr<nebula::cpp2::ErrorCode, std::vector<HostAddr>> BaseProcessor<RESP>::all
template<typename RESP>
ErrorOr<nebula::cpp2::ErrorCode, int32_t> BaseProcessor<RESP>::autoIncrementId() {
folly::SharedMutex::WriteHolder holder(LockUtils::idLock());
static const std::string kIdKey = MetaServiceUtils::idKey();
const std::string kIdKey = MetaServiceUtils::idKey();
int32_t id;
std::string val;
auto ret = kvstore_->get(kDefaultSpaceId, kDefaultPartId, kIdKey, &val);
Expand Down

0 comments on commit 9c35b4f

Please sign in to comment.