1 /*-
2 * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved.
3 *
4 * See the file LICENSE for license information.
5 *
6 * $Id$
7 */
8
9 #include "db_config.h"
10 #include "db_int.h"
11 #include "dbinc/db_page.h"
12 #include "dbinc/db_am.h"
13
14 /*
15 * db_copy --
16 * Copy a database file coordinated with mpool.
17 * This is for backward compatibility to the quick fix in 5.2.
18 *
19 * EXTERN: int db_copy __P((DB_ENV *,
20 * EXTERN: const char *, const char *, const char *));
21 */
22 int
db_copy(dbenv,dbfile,target,passwd)23 db_copy(dbenv, dbfile, target, passwd)
24 DB_ENV *dbenv;
25 const char *dbfile;
26 const char *target;
27 const char *passwd;
28 {
29 COMPQUIET(passwd, NULL);
30 return (__db_dbbackup_pp(dbenv, dbfile, target, 0));
31 }
32