Esempio n. 1
0
static bool readonly_changable(struct ntdb_context *ntdb, const char *caller)
{
	if (inside_transaction(ntdb)) {
		ntdb_logerr(ntdb, NTDB_ERR_EINVAL, NTDB_LOG_USE_ERROR,
			    "%s: can't change"
			    " NTDB_RDONLY inside transaction",
			    caller);
		return false;
	}
	return true;
}
Esempio n. 2
0
static bool readonly_changable(struct tdb_context *tdb, const char *caller)
{
	if (inside_transaction(tdb)) {
		tdb->last_error = tdb_logerr(tdb, TDB_ERR_EINVAL,
					     TDB_LOG_USE_ERROR,
					     "%s: can't change"
					     " TDB_RDONLY inside transaction",
					     caller);
		return false;
	}
	return true;
}