Skip to content

Commit 2e9c4ef

Browse files
Tensorstore Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 816103011 Change-Id: Ic88188ff52d6a2a3fd430eb1333617ee2b18ab00
1 parent 40e7376 commit 2e9c4ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tensorstore/kvstore/ocdbt/io/coalesce_kvstore.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Future<kvstore::ReadResult> CoalesceKvStoreDriver::Read(Key key,
212212
ReadOptions options) {
213213
internal::IntrusivePtr<PendingRead> state_ptr;
214214
{
215-
absl::MutexLock l(&mu_);
215+
absl::MutexLock l(mu_);
216216
auto it = pending_.find(std::string_view(key));
217217
if (it != pending_.end()) {
218218
/// This key is already "reserved" by a PendingRead object, so enqueue
@@ -313,7 +313,7 @@ void CoalesceKvStoreDriver::StartNextRead(
313313
internal::IntrusivePtr<PendingRead> state_ptr) {
314314
std::vector<PendingRead::Op> pending;
315315
{
316-
absl::MutexLock l(&mu_);
316+
absl::MutexLock l(mu_);
317317
if (state_ptr->pending_ops.empty()) {
318318
// No buffered reads for this key; remove the "reservation" and exit.
319319
pending_.erase(state_ptr->key);

tensorstore/kvstore/ocdbt/io/io_handle_impl.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class IoHandleImpl : public IoHandle {
113113
return absl::OkStatus();
114114
}
115115

116-
absl::MutexLock lock(&manifest_mutex_);
116+
absl::MutexLock lock(manifest_mutex_);
117117
// Only validate the new manifest if it is not the same as the existing
118118
// manifest.
119119
if (new_manifest_with_time.manifest !=
@@ -146,7 +146,7 @@ class IoHandleImpl : public IoHandle {
146146
return absl::OkStatus();
147147
}
148148

149-
absl::MutexLock lock(&manifest_mutex_);
149+
absl::MutexLock lock(manifest_mutex_);
150150
if (new_manifest_with_time.manifest != cached_numbered_manifest_.manifest) {
151151
auto* new_manifest = new_manifest_with_time.manifest.get();
152152
if (new_manifest) {

0 commit comments

Comments
 (0)