• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/btree/

Lines Matching +defs:source +defs:key

122 	 * If the user specified a source tree, open it and map it in.
132 /* If we're snapshotting an underlying source file, do it now. */
158 __ram_append(dbc, key, data)
160 DBT *key, *data;
168 * Make sure we've read in all of the backing source file. If
177 if (ret == 0 && key != NULL)
178 ret = __db_retcopy(dbc->env, key, &cp->recno,
221 /* Search the tree for the key; delete only deletes exact matches. */
324 __ramc_get(dbc, key, data, flags, pgnop)
326 DBT *key, *data;
461 if ((ret = __ram_getno(dbc, key, &cp->recno, 0)) != 0)
472 * read from the backing source file. Do it now for DB_CURRENT (if
549 /* Return the key if the user didn't give us one. */
550 if (!F_ISSET(dbc, DBC_OPD) && !F_ISSET(key, DB_DBT_ISSET)) {
552 key, &cp->recno, sizeof(cp->recno),
554 F_SET(key, DB_DBT_ISSET);
570 __ramc_put(dbc, key, data, flags, pgnop)
572 DBT *key, *data;
623 ret = __ram_getno(dbc, key, &cp->recno, 1);
655 ret = __bam_iitem(dbc, key, data, iiflags, 0);
720 /* Return the key if we've created a new record. */
722 (flags == DB_AFTER || flags == DB_BEFORE) && key != NULL)
723 ret = __db_retcopy(env, key, &cp->recno,
883 __ram_getno(dbc, key, rep, can_create)
885 const DBT *key;
894 /* If passed an empty DBT from Java, key->data may be NULL */
895 if (key->size != sizeof(db_recno_t)) {
901 if ((recno = *(db_recno_t *)key->data) == 0) {
983 char *source;
991 DB_APP_DATA, t->re_source, 0, NULL, &source)) != 0)
994 t->re_source = source;
998 * It's possible that the backing source file is read-only. We don't
1000 * when it comes time to write the database back to the source.
1024 DBT key, data;
1041 /* If there's no backing source file, we're done. */
1053 memset(&key, 0, sizeof(key));
1054 key.size = sizeof(db_recno_t);
1055 key.data = &keyno;
1078 * require transaction protecting the backing source file.
1112 switch (ret = __db_get(dbp, ip, NULL, &key, &data, 0)) {
1172 * Read records from a source file.
1194 * Use the record key return memory, it's only a short-term use.
1196 * we'll indirectly call, so use the key so as not to collide.
1314 * key is an exact match, or we're replacing the data item with a
1315 * new data item, replace the current item. If the key isn't an exact
1316 * match, we're inserting a new key/data pair, before the search