Update database contents

saf_update_database is a function defined in db.c.

Synopsis:

int saf_update_database(SAF_Db *database)

Formal Arguments:

  • database: The database to update

Description: This function is used to force the library to update the contents of the database to the most recent operation issued by the client. In the case of file I/O, all pending writes will be flushed so that files are consistent with the most recent operation.

Preconditions:

  • database must be a database handle. (low-cost)
  • database must not be open for read-only access. (no-cost)

Return Value: The constant SAF__SUCCESS is returned when this function is successful. Otherwise this function either returns an error number or throws an exception, depending on the value of the library’s error handling property.

Parallel Notes: This call is collective across all processes in the MPI communicator used to open the database.

See Also:

  • Databases: Introduction for current chapter