Permalink
Browse files

Stop appending CRLF to items.

Change-Id: I9ad5da3fa8547c1691c606f71ae822e78bc1529e
Reviewed-on: http://review.northscale.com:8080/258
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 65c0a89 commit 89b9a9283558ae6070399e8bc095172f7092c6ef @dustin dustin committed with trondn Jun 1, 2010
Showing with 1 addition and 6 deletions.
  1. +1 −1 ep_engine.h
  2. +0 −5 item.hh
View
@@ -711,7 +711,7 @@ friend class LookupCallback;
}
std::stringstream vals;
- vals << val << "\r\n";
+ vals << val;
size_t nb = vals.str().length();
*result = val;
Item *nit = new Item(key, (uint16_t)nkey, item->getFlags(),
View
@@ -150,11 +150,6 @@ private:
data = new std::string(nb, '\0');
} else {
data = new std::string(dta, nb);
- if (data != NULL) {
- if ((*data)[nb-2] != '\r' || (*data)[nb-1] != '\n') {
- data->append("\r\n");
- }
- }
}
if (data != NULL) {

0 comments on commit 89b9a92

Please sign in to comment.