added initial OpenR2 support

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@808 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva
2009-08-19 21:47:56 +00:00
parent 1dda64ab71
commit 68c889ceb7
11 changed files with 1899 additions and 45 deletions

View File

@@ -1522,14 +1522,17 @@ OZ_DECLARE(zap_status_t) zap_channel_command(zap_channel_t *zchan, zap_command_t
if (!zchan->zio->command) {
snprintf(zchan->last_error, sizeof(zchan->last_error), "method not implemented");
zap_log(ZAP_LOG_ERROR, "no commnand functon!\n");
zap_log(ZAP_LOG_ERROR, "no command function defined by the I/O openzap module!\n");
GOTO_STATUS(done, ZAP_FAIL);
}
status = zchan->zio->command(zchan, command, obj);
done:
if (status == ZAP_NOTIMPL) {
snprintf(zchan->last_error, sizeof(zchan->last_error), "I/O command %d not implemented in backend", command);
zap_log(ZAP_LOG_ERROR, "I/O backend does not support command %d!\n", command);
}
done:
zap_mutex_unlock(zchan->mutex);
return status;