Skip to content

7128.43s.secret#39

Closed
alanking wants to merge 7 commits into
4-3-stablefrom
7128.43s.secret
Closed

7128.43s.secret#39
alanking wants to merge 7 commits into
4-3-stablefrom
7128.43s.secret

Conversation

@alanking

Copy link
Copy Markdown
Owner

No description provided.

Adds a test with istream which writes no bytes to the target replica to
show that mtime updates when a replica is truncated, but it is not
updated when the replica is not truncated.
The mtime will be updated whenever the replica is truncated, but it
will not update whenever the replica is not truncated, regardless of
the fact that the replica was not written to (just opened and closed).
Uses replica_open and replica_close.
To follow POSIX more closely, this commit makes a replica's mtime
update in the catalog along with its size and checksum at open time
if it is opened for write and the truncate open flag was used (O_TRUNC).
Adds a test which calls rc_replica_close with update_status disabled
and compute_checksum enabled. These options should be incompatible.
This commit prevents replica_close from completing if the user disabled
update_status and enabled compute_checksum. The operation cannot complete
because the target replica will be in the intermediate status when the
checksum is supposed to be computed.
@alanking alanking closed this Jan 14, 2026
@alanking
alanking deleted the 7128.43s.secret branch January 14, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant