filehash/ffdb_hash.c
static int
_ffdb_flush_meta (ffdb_htab_t* hashp)
{
  /* if this file does not need to be saved, do not do anything */
  if (!hashp->save_file)
    return 0;

  /* just rewrite the first three items */
  hashp->hdr.magic = FFDB_HASHMAGIC;
  hashp->hdr.version = FFDB_HASHVERSION;
  hashp->hdr.h_charkey = hashp->hash(CHARKEY, sizeof(CHARKEY));

  return _ffdb_hput_header (hashp);
}
/**
 * Flush meta header information to backend file
 */
Flush meta header information to backend file
Flush meta header information to backend file
static int
_ffdb_flush_meta (ffdb_htab_t* hashp)
{
  if (!hashp->save_file)
    return 0;
  hashp->hdr.magic = FFDB_HASHMAGIC;
  hashp->hdr.version = FFDB_HASHVERSION;
  hashp->hdr.h_charkey = hashp->hash(CHARKEY, sizeof(CHARKEY));
  return _ffdb_hput_header (hashp);
}
static int _ffdb_flush_meta ( ffdb_htab_t * hashp ) { if ( ! hashp -> save_file ) return 0 ; hashp -> hdr . magic = FFDB_HASHMAGIC ; hashp -> hdr . version = FFDB_HASHVERSION ; hashp -> hdr . h_charkey = hashp -> hash ( CHARKEY , sizeof ( CHARKEY ) ) ; return _ffdb_hput_header ( hashp ) ; }
Flush meta header information to backend file
Flush meta header information to backend file
/* if this file does not need to be saved, do not do anything */ /* just rewrite the first three items */