<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for explanation!<br>If that is the case, make sense why we don't use xqsort for now.<br>Roy<br><br><div><hr id="stopSpelling">Date: Fri, 6 Mar 2015 12:58:38 +0800<br>From: menglingkun@cmss.chinamobile.com<br>To: bsdnet@outlook.com; namei.unix@gmail.com; starmlk@163.com<br>CC: sheepdog@lists.wpkg.org<br>Subject: RE: RE: [sheepdog] [PATCH v2] tools/zk_control: add sort options for list subcommand<br><br><style><!--
.ExternalClass {
line-height:1.5;
}
.ExternalClass blockquote {
}
.ExternalClass div.ecxfoxdiv20150306124451232755 {
}
.ExternalClass {
font-size:10.5pt;
color:rgb(0, 0, 0);
line-height:1.5;
}
--></style>
<div><span></span>Yes, I saw it. </div><div>However, if xqort in util.h used, zk_control can't be linked beacuse of the current makefile.</div><div>And if modify the current makefile to be linked, it will make zk_control much larger.</div><div>Because the xqosrt used function log_write, which is compiled in libsheepdog.a.</div><div>Maybe having better way, but it will change a lot? </div><div><br></div><div>So after discussing with Yuan, just used qsort like xqsort just without using assert (log_write in it).</div><div><br></div><div>Lingkun</div><div><br></div><blockquote style=""><div class="ecxFoxDiv20150306124451232755">
<div dir="ltr">> Saw there is a wrapper function called xqsort in util.h, should it be used?<br>> <br>> Roy<br>> <br><div><span style="font-size:10.5pt;line-height:1.5;background-color:window;">></span><span style="font-size:10.5pt;line-height:1.5;background-color:window;"> </span>> Date: Fri, 6 Mar 2015 11:48:52 +0800<br>> > From: namei.unix@gmail.com<br>> > To: starmlk@163.com<br>> > CC: sheepdog@lists.wpkg.org; menglingkun@cmss.chinamobile.com<br>> > Subject: Re: [sheepdog] [PATCH v2] tools/zk_control: add sort options for list subcommand<br>> > <br>> > On Thu, Mar 05, 2015 at 01:47:28PM +0800, Meng Lingkun wrote:<br>> > > From: Meng Lingkun <menglingkun@cmss.chinamobile.com><br>> > > <br>> > > It's more useable to list the sequential znodes in queue with sort function.<br>> > > And we always focus on the lastest zndode in queue, so sort in reverse order.<br>> > > <br>> > <br>> > Applied after I reversed the list order.<br>> > <br>> > Yuan<br>> > -- <br>> > sheepdog mailing list<br>> > sheepdog@lists.wpkg.org<br>> > https://lists.wpkg.org/mailman/listinfo/sheepdog<br></div> </div>
</div></blockquote></div> </div></body>
</html>