Index: sql/recovery.h |
diff --git a/sql/recovery.h b/sql/recovery.h |
index e832da600147004cbcc5cb80d06db04cc977695a..be23e97a76b20c70e0820c92d16a3337cca84d19 100644 |
--- a/sql/recovery.h |
+++ b/sql/recovery.h |
@@ -41,6 +41,15 @@ class SQL_EXPORT Recovery { |
public: |
~Recovery(); |
+ // This module is intended to be used in concert with a virtual |
+ // table module (see third_party/sqlite/src/src/recover.c). If the |
+ // build defines USE_SYSTEM_SQLITE, this module will not be present. |
+ // TODO(shess): I am still debating how to handle this - perhaps it |
+ // will just imply Unrecoverable(). This is exposed to allow tests |
+ // to adapt to the cases, please do not rely on it in production |
+ // code. |
+ static bool FullRecoverySupported(); |
+ |
// Begin the recovery process by opening a temporary database handle |
// and attach the existing database to it at "corrupt". To prevent |
// deadlock, all transactions on |connection| are rolled back. |