(db/snapshot): fix GC PartitionCommit (#3750)

Signed-off-by: peng.xu <peng.xu@zilliz.com>
This commit is contained in:
XuPeng-SH 2020-09-15 19:23:26 +08:00 committed by GitHub
parent fbca2c99fa
commit 600ce3cecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ GetResPath<PartitionCommit>(const std::string& root, const PartitionCommit::Ptr&
std::stringstream ss;
ss << root << "/";
ss << COLLECTION_PREFIX << res_ptr->GetCollectionId() << "/";
ss << PARTITION_PREFIX << res_ptr->GetID() << "/";
ss << PARTITION_PREFIX << res_ptr->GetPartitionId() << "/";
ss << *(ids.begin()) << MAP_SUFFIX;
return ss.str();