Permalink
Browse files

Removed unnecessary redundant constructor.

Change-Id: I381bc4bd43d93cf0cf09d93c82a4b4499a3f06c8
  • Loading branch information...
1 parent da6d6c3 commit ddd9491c671fd71c8ef79b84a6d8f8416bec21ab @dustin dustin committed Jun 19, 2010
Showing with 2 additions and 9 deletions.
  1. +2 −9 stored-value.hh
View
@@ -18,19 +18,11 @@ class HashTable;
class StoredValue {
public:
- StoredValue(const Item &itm, StoredValue *n) :
+ StoredValue(const Item &itm, StoredValue *n, bool setDirty = true) :
key(itm.getKey()), value(itm.getValue()),
flags(itm.getFlags()), exptime(itm.getExptime()), dirtied(0), next(n),
cas(itm.getCas()), id(itm.getId()), locked(false), lock_expiry(0)
{
- markDirty();
- }
-
- StoredValue(const Item &itm, StoredValue *n, bool setDirty) :
- key(itm.getKey()), value(itm.getValue()),
- flags(itm.getFlags()), exptime(itm.getExptime()), dirtied(0), next(n),
- cas(itm.getCas()), id(itm.getId())
- {
if (setDirty) {
markDirty();
} else {
@@ -40,6 +32,7 @@ public:
~StoredValue() {
}
+
void markDirty() {
data_age = ep_current_time();
if (!isDirty()) {

0 comments on commit ddd9491

Please sign in to comment.