Skip to content

Commit 6f2925d

Browse files
committed
chore: OpManagerTest fixes
1 parent 6265f52 commit 6f2925d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/tiering/op_manager_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ struct OpManagerTest : PoolTestBase, OpManager {
5555

5656
void NotifyStashed(EntryId id, const io::Result<DiskSegment>& segment) override {
5757
ASSERT_TRUE(segment);
58-
stashed_[id] = *segment;
58+
auto [it, inserted] = stashed_.emplace(id, *segment);
59+
ASSERT_TRUE(inserted) << "Duplicate stash for " << id;
5960
}
6061

6162
bool NotifyFetched(EntryId id, std::string_view value, DiskSegment segment,

0 commit comments

Comments
 (0)