Skip to content

Commit

Permalink
for SETs via DL, compare write timestamp with existing item creation …
Browse files Browse the repository at this point in the history
…time

Summary: as title

Reviewed By: stuclar

Differential Revision: D65797021

fbshipit-source-id: 4e48c7d03837e345176dd794c52abbdf9948c5a1
  • Loading branch information
Lenar Fatikhov authored and facebook-github-bot committed Nov 15, 2024
1 parent c1c04fa commit 499adf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mcrouter/lib/carbon/RequestCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,14 @@ class RequestCommon : public MessageCommon {
sourceIpAddr_ = sourceIpAddr;
}

void setWriteTimestamp(uint64_t writeTimestamp) noexcept {
void setWriteTimestampNs(uint64_t writeTimestamp) noexcept {
writeTimestamp_ = writeTimestamp;
}

std::optional<uint64_t> getWriteTimestampNs() const noexcept {
return writeTimestamp_;
}

protected:
void markBufferAsDirty() {
serializedBuffer_ = nullptr;
Expand Down

0 comments on commit 499adf8

Please sign in to comment.