Commit e1a6375d authored by Robert Haas's avatar Robert Haas

Comment fixes.

Jeff Davis, somewhat edited by me
parent 152525b5
...@@ -8784,9 +8784,10 @@ copy_relation_data(SMgrRelation src, SMgrRelation dst, ...@@ -8784,9 +8784,10 @@ copy_relation_data(SMgrRelation src, SMgrRelation dst,
pfree(buf); pfree(buf);
/* /*
* If the rel isn't temp, we must fsync it down to disk before it's safe * If the rel is WAL-logged, must fsync before commit. We use heap_sync
* to commit the transaction. (For a temp rel we don't care since the rel * to ensure that the toast table gets fsync'd too. (For a temp or
* will be uninteresting after a crash anyway.) * unlogged rel we don't care since the data will be gone after a crash
* anyway.)
* *
* It's obvious that we must do this when not WAL-logging the copy. It's * It's obvious that we must do this when not WAL-logging the copy. It's
* less obvious that we have to do it even if we did WAL-log the copied * less obvious that we have to do it even if we did WAL-log the copied
......
...@@ -337,7 +337,6 @@ ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op) ...@@ -337,7 +337,6 @@ ResetUnloggedRelationsInDbspaceDir(const char *dbspacedirname, int op)
copy_file(srcpath, dstpath); copy_file(srcpath, dstpath);
} }
/* Done with the first pass. */
FreeDir(dbspace_dir); FreeDir(dbspace_dir);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment