Skip to content

Commit

Permalink
C++ Client: fix one incorrect mutex unlock, remove one needless unlock (
Browse files Browse the repository at this point in the history
  • Loading branch information
kosak committed Nov 19, 2023
1 parent 97b8407 commit e596070
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ std::shared_ptr<Schema> TableHandleImpl::Schema() {
std::unique_lock guard(mutex_);
if (schema_request_sent_) {
// Schema request already sent by someone else. So wait for the successful result or error.
mutex_.unlock();
guard.unlock();
return schema_future_.get();
}

Expand Down
1 change: 0 additions & 1 deletion cpp-client/deephaven/dhclient/src/server/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ void Server::SendRpc(const std::function<grpc::Status(grpc::ClientContext *)> &c
const char *message = "Server cancelled. All further RPCs are being rejected";
throw std::runtime_error(DEEPHAVEN_LOCATION_STR(message));
}
guard.unlock();
}

auto status = callback(&ctx);
Expand Down

0 comments on commit e596070

Please sign in to comment.