/[global]/global/libdb/bt_close.c
ViewVC logotype

Diff of /global/libdb/bt_close.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by h-iwamoto, Wed Aug 24 13:50:02 2005 UTC revision 1.4 by shigio, Wed Aug 24 14:50:23 2005 UTC
# Line 61  static int bt_meta(BTREE *); Line 61  static int bt_meta(BTREE *);
61   *   *
62   * Parameters:   * Parameters:
63   *      dbp:    pointer to access method   *      dbp:    pointer to access method
64     *      abandon: 1: don't sync, 0: sync
65   *   *
66   * Returns:   * Returns:
67   *      RET_ERROR, RET_SUCCESS   *      RET_ERROR, RET_SUCCESS
# Line 82  __bt_close(dbp, abandon) Line 83  __bt_close(dbp, abandon)
83          }          }
84    
85          /* Sync the tree. */          /* Sync the tree. */
86            /*
87             * If abandon flag is set, omit writing to the disk.
88             * Since the writing spend much time, you should use this flag
89             * when you remove the file after closing.
90             */
91          if (!abandon && __bt_sync(dbp, 0) == RET_ERROR)          if (!abandon && __bt_sync(dbp, 0) == RET_ERROR)
92                  return (RET_ERROR);                  return (RET_ERROR);
93    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26