Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

rgw/sfs: Use sqlite3_status() in make_sqlite3_status_fn() #232

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

tserong
Copy link
Member

@tserong tserong commented Oct 18, 2023

The current implementation calls sqlite3_db_status(), which is incorrect, given we're using it for SQLITE_STATUS_MEMORY_USED, SQLITE_STATUS_MALLOC_SIZE, and SQLITE_STATUS_MALLOC_COUNT. These codes are for use with sqlite3_status().

@tserong tserong added the kind/bug Something isn't working label Oct 18, 2023
@tserong tserong requested a review from irq0 October 18, 2023 05:19
irq0
irq0 previously approved these changes Oct 18, 2023
@tserong tserong force-pushed the wip-metrics-use-sqlite3_status branch from ee79aba to d00b71b Compare October 19, 2023 06:25
@tserong
Copy link
Member Author

tserong commented Oct 19, 2023

(force push was just to fix signature)

@tserong tserong force-pushed the wip-metrics-use-sqlite3_status branch from d00b71b to 07047d0 Compare October 19, 2023 09:46
@github-actions github-actions bot added the needs-rebase Changes need a rebase label Oct 19, 2023
@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@tserong tserong changed the base branch from s3gw.2023-10-19-old to s3gw October 19, 2023 09:48
The current implementation calls sqlite3_db_status(), which is
incorrect, given we're using it for SQLITE_STATUS_MEMORY_USED,
SQLITE_STATUS_MALLOC_SIZE, and SQLITE_STATUS_MALLOC_COUNT.
These codes are for use with sqlite3_status().

Signed-off-by: Tim Serong <[email protected]>
@tserong tserong force-pushed the wip-metrics-use-sqlite3_status branch from 07047d0 to 42a0575 Compare October 19, 2023 09:49
@github-actions github-actions bot removed the needs-rebase Changes need a rebase label Oct 19, 2023
@tserong tserong merged commit 92347c9 into aquarist-labs:s3gw Oct 19, 2023
5 checks passed
@tserong tserong deleted the wip-metrics-use-sqlite3_status branch October 19, 2023 09:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants