mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r8284: - fixed some uninitialised variables in the irpc code
- added code to send multiple irpc calls in parallel, to all servers that have registered the given name, with output going in io.results[i]. This allows you to make rpc calls to multiple servers at once, which is needed for clients like smbstatus
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
529370ed92
commit
061e20e509
@@ -88,11 +88,12 @@
|
||||
/*
|
||||
add an indexed array element to a property
|
||||
*/
|
||||
static void mprAddArray(struct MprVar *var, int i, struct MprVar v)
|
||||
void mprAddArray(struct MprVar *var, int i, struct MprVar v)
|
||||
{
|
||||
char idx[16];
|
||||
mprItoa(i, idx, sizeof(idx));
|
||||
mprSetVar(var, idx, v);
|
||||
mprSetVar(var, "length", mprCreateIntegerVar(i+1));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -179,8 +180,7 @@ struct MprVar mprLdbArray(struct ldb_message **msg, int count, const char *name)
|
||||
for (i=0;i<count;i++) {
|
||||
mprAddArray(&res, i, mprLdbMessage(msg[i]));
|
||||
}
|
||||
mprSetPropertyValue(&res, "length", mprCreateIntegerVar(i));
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user