MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-spanner-emulator / CommitTimestampNotInFuture

Function CommitTimestampNotInFuture

common/errors.cc:2274–2283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2272}
2273
2274absl::Status CommitTimestampNotInFuture(absl::string_view column,
2275 absl::string_view key,
2276 absl::Time timestamp) {
2277 return absl::Status(
2278 absl::StatusCode::kFailedPrecondition,
2279 absl::Substitute(
2280 "Setting allow_commit_timestamp option on column $0 is not allowed "
2281 "because it has a timestamp in the future at key: $1 $2",
2282 column, key, absl::FormatTime(timestamp)));
2283}
2284
2285absl::Status CannotReadPendingCommitTimestamp(absl::string_view entity_string) {
2286 return absl::Status(

Callers 2

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68