diff --git a/src/HashedObject.cpp b/src/HashedObject.cpp index 381df79df8..bfa3d7ee16 100644 --- a/src/HashedObject.cpp +++ b/src/HashedObject.cpp @@ -35,15 +35,18 @@ bool HashedObjectStore::store(HashedObjectType type, uint32 index, HashedObject::pointer object = boost::make_shared(type, index, data, hash); if (!mCache.canonicalize(hash, object)) { +// cLog(lsTRACE) << "Queuing write for " << hash; boost::recursive_mutex::scoped_lock sl(mWriteMutex); mWriteSet.push_back(object); - if (!mWritePending && (mWriteSet.size() >= 64)) + if (!mWritePending) { mWritePending = true; boost::thread t(boost::bind(&HashedObjectStore::bulkWrite, this)); t.detach(); } } +// else +// cLog(lsTRACE) << "HOS: already had " << hash; return true; }