diff options
Diffstat (limited to 'lib/tdb2/test/helprun-external-agent.c')
-rw-r--r-- | lib/tdb2/test/helprun-external-agent.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tdb2/test/helprun-external-agent.c b/lib/tdb2/test/helprun-external-agent.c new file mode 100644 index 0000000000..469847be75 --- /dev/null +++ b/lib/tdb2/test/helprun-external-agent.c @@ -0,0 +1,10 @@ +#include "external-agent.h" +#include "tdb1_private.h" + +enum agent_return external_agent_needs_rec(struct tdb_context *tdb) +{ + if (tdb->flags & TDB_VERSION1) + return tdb1_needs_recovery(tdb) ? SUCCESS : FAILED; + else + return tdb_needs_recovery(tdb) ? SUCCESS : FAILED; +} |