From ddfcbea3e120f68d34ddb23cef77f514617912a4 Mon Sep 17 00:00:00 2001 From: leipeng Date: Tue, 6 Jun 2023 11:19:15 -0700 Subject: [PATCH] IterKey: change space_[32] to 39 to utilize padding space (#10633) Summary: This PR utilize padding space. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10633 Reviewed By: pdillinger Differential Revision: D46410978 Pulled By: ajkr fbshipit-source-id: 23ec757b1eea9221c1390971e39d341c6b7f2003 --- db/dbformat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/dbformat.h b/db/dbformat.h index 76937b4be..763d331e8 100644 --- a/db/dbformat.h +++ b/db/dbformat.h @@ -688,7 +688,7 @@ class IterKey { const char* key_; size_t key_size_; size_t buf_size_; - char space_[32]; // Avoid allocation for short keys + char space_[39]; // Avoid allocation for short keys bool is_user_key_; Slice SetKeyImpl(const Slice& key, bool copy) {