commented out timestamp hack
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@2549 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
49b4d4ebdb
commit
c9695d4fd1
1 changed files with 3 additions and 0 deletions
|
@ -87,12 +87,15 @@ public:
|
||||||
static int compare(const byte* k1,size_t k1l, const byte* k2, size_t k2l) {
|
static int compare(const byte* k1,size_t k1l, const byte* k2, size_t k2l) {
|
||||||
|
|
||||||
const size_t ts_sz = sizeof(int64_t)+1;
|
const size_t ts_sz = sizeof(int64_t)+1;
|
||||||
|
#if 0
|
||||||
|
// hack for gc
|
||||||
if(k1l > ts_sz && ! k1[k1l-ts_sz]) {
|
if(k1l > ts_sz && ! k1[k1l-ts_sz]) {
|
||||||
k1l -= ts_sz;
|
k1l -= ts_sz;
|
||||||
}
|
}
|
||||||
if(k2l > ts_sz && ! k2[k2l-ts_sz]) {
|
if(k2l > ts_sz && ! k2[k2l-ts_sz]) {
|
||||||
k2l -= ts_sz;
|
k2l -= ts_sz;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t min_l = k1l < k2l ? k1l : k2l;
|
size_t min_l = k1l < k2l ? k1l : k2l;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue