From a41982f110685858c492052d0f50567adbcafeaf Mon Sep 17 00:00:00 2001 From: lukemartinlogan Date: Mon, 5 Feb 2024 15:14:43 -0600 Subject: [PATCH] Add back original ReorganizeBlob --- include/hermes/bucket.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/hermes/bucket.h b/include/hermes/bucket.h index 5f4b7fa6c..effbfda14 100644 --- a/include/hermes/bucket.h +++ b/include/hermes/bucket.h @@ -406,6 +406,20 @@ class Bucket { id_, hshm::charbuf(""), blob_id, score, true, ctx); } + /** + * Reorganize a blob to a new score or node + * + * @depricated + * */ + void ReorganizeBlob(const BlobId &blob_id, + float score, + u32 node_id, + Context &ctx) { + ctx.node_id_ = node_id; + blob_mdm_->AsyncReorganizeBlobRoot( + id_, hshm::charbuf(""), blob_id, score, true, ctx); + } + /** * Get the current size of the blob in the bucket * */