]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix a bug in IterKey 2.8.1.fb
authorsdong <siying.d@fb.com>
Thu, 24 Apr 2014 00:51:16 +0000 (17:51 -0700)
committersdong <siying.d@fb.com>
Thu, 24 Apr 2014 02:45:58 +0000 (19:45 -0700)
commiteb96dc003aba1b6f38286a5a290072feb659978f
treefff4ed18b3129f56e9ff4deed3cd06df15553a82
parent8db376d49454cbfd490a99f9e21c87c82b719204
Fix a bug in IterKey

Summary: IterKey set buffer_size_ to a wrong initial value, causing it to always allocate values from heap instead of stack if the key size is smaller. Fix it.

Test Plan: make all check

Reviewers: haobo, ljin

Reviewed By: haobo

CC: igor, dhruba, yhchiang, leveldb
Differential Revision: https://reviews.facebook.net/D18279
db/dbformat.h