remove line that accidentally disabled strippedkeylen()
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@2529 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
ae7c827ab5
commit
bb3e768df7
1 changed files with 6 additions and 7 deletions
13
datatuple.h
13
datatuple.h
|
@ -29,14 +29,13 @@ public:
|
|||
return data_ - rawkey();
|
||||
}
|
||||
inline len_t strippedkeylen() const {
|
||||
return rawkeylen();
|
||||
const size_t ts_sz = sizeof(uint64_t)+1;
|
||||
size_t al = rawkeylen();
|
||||
if(al <= ts_sz || rawkey()[al-ts_sz]!=0) {
|
||||
return al;
|
||||
} else {
|
||||
return al - ts_sz;
|
||||
}
|
||||
size_t al = rawkeylen();
|
||||
if(al <= ts_sz || rawkey()[al-ts_sz]!=0) {
|
||||
return al;
|
||||
} else {
|
||||
return al - ts_sz;
|
||||
}
|
||||
}
|
||||
inline len_t datalen() const {
|
||||
return (datalen_ == DELETE) ? 0 : datalen_;
|
||||
|
|
Loading…
Reference in a new issue