Lines Matching refs:res

938 	int res;
944 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_child_callback, &ci);
947 if (res == REP_PROTOCOL_DONE)
948 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
949 return (res);
962 int res;
973 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_child_callback, &ci);
976 if (res == REP_PROTOCOL_DONE)
977 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
978 if (res != REP_PROTOCOL_SUCCESS)
979 return (res);
991 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_pg_callback, &ci);
992 if (res == REP_PROTOCOL_SUCCESS) {
994 res = backend_run(BACKEND_TYPE_NONPERSIST, q,
997 if (res == REP_PROTOCOL_FAIL_BACKEND_ACCESS)
998 res = REP_PROTOCOL_SUCCESS;
1000 if (res == REP_PROTOCOL_DONE)
1001 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
1004 return (res);
1017 int res;
1031 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_pg_callback, &ci);
1032 if (res == REP_PROTOCOL_SUCCESS) {
1034 res = backend_run(BACKEND_TYPE_NONPERSIST, q,
1037 if (res == REP_PROTOCOL_FAIL_BACKEND_ACCESS)
1038 res = REP_PROTOCOL_SUCCESS;
1040 if (res == REP_PROTOCOL_DONE)
1041 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
1044 if (res != REP_PROTOCOL_SUCCESS)
1045 return (res);
1056 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_snapshot_callback, &ci);
1057 if (res == REP_PROTOCOL_DONE)
1058 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
1061 return (res);
1127 int res;
1140 res = backend_run(BACKEND_TYPE_NORMAL, q, fill_pg_callback, &ci);
1141 if (res == REP_PROTOCOL_DONE)
1142 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
1145 return (res);
1158 int res;
1166 res = backend_tx_begin_ro(backend, &tx);
1167 if (res != REP_PROTOCOL_SUCCESS) {
1172 assert(res != REP_PROTOCOL_FAIL_BACKEND_ACCESS);
1173 return (res);
1184 res = backend_tx_run(tx, q, fill_property_callback, &ci);
1185 if (res == REP_PROTOCOL_DONE)
1186 res = REP_PROTOCOL_FAIL_NO_RESOURCES;
1190 return (res);