git-hulk commented on code in PR #1888: URL: https://github.com/apache/kvrocks/pull/1888#discussion_r1396709733
########## src/types/redis_bitmap.cc: ########## @@ -246,19 +246,20 @@ rocksdb::Status Bitmap::BitCount(const Slice &user_key, int64_t start, int64_t s uint32_t start_index = u_start / kBitmapSegmentBytes; uint32_t stop_index = u_stop / kBitmapSegmentBytes; // Don't use multi get to prevent large range query, and take too much memory - std::string value; + rocksdb::PinnableSlice pin_value; Review Comment: We should move this line into for-loop? so that we don't need to manually call the pin_value.Reset. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
