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:
sears 2011-05-02 22:05:32 +00:00
parent ae7c827ab5
commit bb3e768df7

View file

@ -29,14 +29,13 @@ public:
return data_ - rawkey(); return data_ - rawkey();
} }
inline len_t strippedkeylen() const { inline len_t strippedkeylen() const {
return rawkeylen();
const size_t ts_sz = sizeof(uint64_t)+1; const size_t ts_sz = sizeof(uint64_t)+1;
size_t al = rawkeylen(); size_t al = rawkeylen();
if(al <= ts_sz || rawkey()[al-ts_sz]!=0) { if(al <= ts_sz || rawkey()[al-ts_sz]!=0) {
return al; return al;
} else { } else {
return al - ts_sz; return al - ts_sz;
} }
} }
inline len_t datalen() const { inline len_t datalen() const {
return (datalen_ == DELETE) ? 0 : datalen_; return (datalen_ == DELETE) ? 0 : datalen_;