示例#1
0
文件: l2hash.c 项目: abudnik/eblob
/**
 * eblob_l2hash_upsert() - updates or inserts entry in cache (hence the name).
 */
int eblob_l2hash_upsert(struct eblob_l2hash *l2h, const struct eblob_key *key,
		const struct eblob_ram_control *rctl, int *replaced)
{
	return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_FLAVOR_UPSERT, replaced);
}
示例#2
0
文件: l2hash.c 项目: zloidemon/eblob
/**
 * eblob_l2hash_upsert() - updates or inserts entry in cache (hence the name).
 */
int eblob_l2hash_upsert(struct eblob_l2hash *l2h, struct eblob_key *key, struct eblob_ram_control *rctl)
{
	return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_TYPE_UPSERT);
}
示例#3
0
文件: l2hash.c 项目: abudnik/eblob
/**
 * eblob_l2hash_update() - updates entry in cache. Fails if entry is not
 * already there.
 */
int eblob_l2hash_update(struct eblob_l2hash *l2h, const struct eblob_key *key, const struct eblob_ram_control *rctl)
{
	return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_FLAVOR_UPDATE, NULL);
}