summaryrefslogtreecommitdiff
path: root/src/db/db_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/db_copy.c')
-rw-r--r--src/db/db_copy.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/db/db_copy.c b/src/db/db_copy.c
new file mode 100644
index 00000000..359c74be
--- /dev/null
+++ b/src/db/db_copy.c
@@ -0,0 +1,31 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved.
+ *
+ * $Id$
+ */
+
+#include "db_config.h"
+#include "db_int.h"
+#include "dbinc/db_page.h"
+#include "dbinc/db_am.h"
+
+/*
+ * db_copy --
+ * Copy a database file coordinated with mpool.
+ * This is for backward compatibility to the quick fix in 5.2.
+ *
+ * EXTERN: int db_copy __P((DB_ENV *,
+ * EXTERN: const char *, const char *, const char *));
+ */
+int
+db_copy(dbenv, dbfile, target, passwd)
+ DB_ENV *dbenv;
+ const char *dbfile;
+ const char *target;
+ const char *passwd;
+{
+ COMPQUIET(passwd, NULL);
+ return (__db_dbbackup_pp(dbenv, dbfile, target, 0));
+}