]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: document debugging for libcephsqlite 47600/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 15 Aug 2022 15:05:21 +0000 (11:05 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 15 Aug 2022 17:24:21 +0000 (13:24 -0400)
Fixes: https://tracker.ceph.com/issues/57127
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
doc/rados/api/libcephsqlite.rst

index 76ab306bb1b53a135df2674bb183287a809c75c3..beee4a466a34e840cce6f5b926c71c7739b2a3af 100644 (file)
@@ -426,6 +426,22 @@ the asynchronous writes as well as an asynchronous update to the size of the
 striped file.
 
 
+Debugging
+^^^^^^^^^
+
+Debugging libcephsqlite can be turned on via::
+
+    debug_cephsqlite
+
+If running the ``sqlite3`` command-line tool, use:
+
+.. code:: sh
+
+   env CEPH_ARGS='--log_to_file true --log-file sqlite3.log --debug_cephsqlite 20 --debug_ms 1' sqlite3 ...
+
+This will save all the usual Ceph debugging to a file ``sqlite3.log`` for inspection.
+
+
 .. _SQLite: https://sqlite.org/index.html
 .. _SQLite VFS: https://www.sqlite.org/vfs.html
 .. _SQLite Backup: https://www.sqlite.org/backup.html