Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
bece806662
@ -803,7 +803,7 @@ static void *getMcontextEip(ucontext_t *uc) {
|
|||||||
#endif
|
#endif
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
/* Linux */
|
/* Linux */
|
||||||
#if defined(__i386__)
|
#if defined(__i386__) || defined(__ILP32__)
|
||||||
return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */
|
return (void*) uc->uc_mcontext.gregs[14]; /* Linux 32 */
|
||||||
#elif defined(__X86_64__) || defined(__x86_64__)
|
#elif defined(__X86_64__) || defined(__x86_64__)
|
||||||
return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */
|
return (void*) uc->uc_mcontext.gregs[16]; /* Linux 64 */
|
||||||
@ -915,7 +915,7 @@ void logRegisters(ucontext_t *uc) {
|
|||||||
/* Linux */
|
/* Linux */
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
/* Linux x86 */
|
/* Linux x86 */
|
||||||
#if defined(__i386__)
|
#if defined(__i386__) || defined(__ILP32__)
|
||||||
serverLog(LL_WARNING,
|
serverLog(LL_WARNING,
|
||||||
"\n"
|
"\n"
|
||||||
"EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
|
"EAX:%08lx EBX:%08lx ECX:%08lx EDX:%08lx\n"
|
||||||
|
@ -1781,7 +1781,7 @@ sds catClientInfoString(sds s, client *client) {
|
|||||||
if (emask & AE_WRITABLE) *p++ = 'w';
|
if (emask & AE_WRITABLE) *p++ = 'w';
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
return sdscatfmt(s,
|
return sdscatfmt(s,
|
||||||
"id=%U addr=%s fd=%i name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U obl=%U oll=%U omem=%U events=%s cmd=%s",
|
"id=%U addr=%s fd=%i name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U obl=%U oll=%U omem=%U events=%s cmd=%s user=%s",
|
||||||
(unsigned long long) client->id,
|
(unsigned long long) client->id,
|
||||||
getClientPeerId(client),
|
getClientPeerId(client),
|
||||||
client->fd,
|
client->fd,
|
||||||
@ -1799,7 +1799,8 @@ sds catClientInfoString(sds s, client *client) {
|
|||||||
(unsigned long long) listLength(client->reply),
|
(unsigned long long) listLength(client->reply),
|
||||||
(unsigned long long) getClientOutputBufferMemoryUsage(client),
|
(unsigned long long) getClientOutputBufferMemoryUsage(client),
|
||||||
events,
|
events,
|
||||||
client->lastcmd ? client->lastcmd->name : "NULL");
|
client->lastcmd ? client->lastcmd->name : "NULL",
|
||||||
|
client->user ? client->user->name : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
sds getAllClientsInfoString(int type) {
|
sds getAllClientsInfoString(int type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user