Skip to content

Commit

Permalink
Change an incorrect TSA annotation. (#1552)
Browse files Browse the repository at this point in the history
* Change an incorrect TSA annotation.

read_total_page_count_locked is protected by the
db_read_write_mutex_, but doesn't take it itself.
Fix the annotation to reflect that.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Jan 25, 2024
1 parent 931bf54 commit 23cd98e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ROSBAG2_STORAGE_DEFAULT_PLUGINS_PUBLIC SqliteStorage
int get_last_rowid();
int read_db_schema_version();
uint64_t get_page_size() const;
uint64_t read_total_page_count_locked() const RCPPUTILS_TSA_GUARDED_BY(db_read_write_mutex_);
uint64_t read_total_page_count_locked() const RCPPUTILS_TSA_REQUIRES(db_read_write_mutex_);

using ReadQueryResult = SqliteStatementWrapper::QueryResult<
std::shared_ptr<rcutils_uint8_array_t>, rcutils_time_point_value_t, std::string, int>;
Expand Down

0 comments on commit 23cd98e

Please sign in to comment.