diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-11-30 08:46:26 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-11-30 08:46:26 +0000 |
commit | 81c8c244b26011a071c89b43a38bba7039226019 (patch) | |
tree | a0602e39901d870d1fe4275a96c70a8450710882 /src/backend/commands/dbcommands.c | |
parent | b16516b887f058782d67c90103148544f8adbd8f (diff) | |
download | postgresql-81c8c244b26011a071c89b43a38bba7039226019.tar.gz postgresql-81c8c244b26011a071c89b43a38bba7039226019.zip |
No more #ifdef XLOG.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 95f302d93e4..6e8e27a7485 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.69 2000/11/18 03:36:48 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.70 2000/11/30 08:46:22 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -153,13 +153,11 @@ createdb(const char *dbname, const char *dbpath, elog(ERROR, "database path may not contain single quotes"); /* ... otherwise we'd be open to shell exploits below */ -#ifdef XLOG /* Force dirty buffers out to disk, to ensure source database is * up-to-date for the copy. (We really only need to flush buffers * for the source database...) */ BufferSync(); -#endif /* * Close virtual file descriptors so the kernel has more available for @@ -255,13 +253,11 @@ createdb(const char *dbname, const char *dbpath, /* Close pg_database, but keep lock till commit */ heap_close(pg_database_rel, NoLock); -#ifdef XLOG /* Force dirty buffers out to disk, so that newly-connecting backends * will see the new database in pg_database right away. (They'll see * an uncommitted tuple, but they don't care; see GetRawDatabaseInfo.) */ BufferSync(); -#endif } |