diff --git a/src/lib/memory/blob_manager.cpp b/src/lib/memory/blob_manager.cpp index 2758e3c4..ec5a5e11 100644 --- a/src/lib/memory/blob_manager.cpp +++ b/src/lib/memory/blob_manager.cpp @@ -14,7 +14,6 @@ BlobManager::Result< blob_id > MemoryHomeObject::_put_blob(ShardInfo const& shar // Generate BlobID (with RAFT this will happen implicitly) and Route auto const route = BlobRoute{shard.id, our_shard._shard_seq_num++}; - if ((UINT64_MAX >> 16) < route.blob) { return folly::makeUnexpected(BlobError::UNKNOWN); } LOGTRACEMOD(homeobject, "Writing Blob {}", route); // Write (move) Blob to Heap diff --git a/src/lib/memory/tests/BlobManagerTest.cpp b/src/lib/memory/tests/BlobManagerTest.cpp index 0ce8aad0..0574e0eb 100644 --- a/src/lib/memory/tests/BlobManagerTest.cpp +++ b/src/lib/memory/tests/BlobManagerTest.cpp @@ -144,6 +144,8 @@ TEST_F(BlobManagerFixture, BasicTests) { EXPECT_EQ(BlobError::INVALID_ARG, p_e.error()); EXPECT_TRUE(m_memory_homeobj->blob_manager()->del(_shard_1.id, _blob_id).get()); + EXPECT_EQ(BlobError::UNKNOWN_BLOB, m_memory_homeobj->blob_manager()->get(_shard_1.id, _blob_id).get().error()); + EXPECT_EQ(BlobError::UNKNOWN_BLOB, m_memory_homeobj->blob_manager()->del(_shard_1.id, _blob_id).get().error()); } int main(int argc, char* argv[]) {