"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/extstore.t" between
memcached-1.6.8.tar.gz and memcached-1.6.9.tar.gz

About: memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.

extstore.t  (memcached-1.6.8):extstore.t  (memcached-1.6.9)
skipping to change at line 23 skipping to change at line 23
if (!supports_extstore()) { if (!supports_extstore()) {
plan skip_all => 'extstore not enabled'; plan skip_all => 'extstore not enabled';
exit 0; exit 0;
} }
$ext_path = "/tmp/extstore.$$"; $ext_path = "/tmp/extstore.$$";
my $server = new_memcached("-m 64 -U 0 -o ext_page_size=8,ext_wbuf_size=2,ext_th reads=1,ext_io_depth=2,ext_item_size=512,ext_item_age=2,ext_recache_rate=10000,e xt_max_frag=0.9,ext_path=$ext_path:64m,slab_automove=0,ext_compact_under=1"); my $server = new_memcached("-m 64 -U 0 -o ext_page_size=8,ext_wbuf_size=2,ext_th reads=1,ext_io_depth=2,ext_item_size=512,ext_item_age=2,ext_recache_rate=10000,e xt_max_frag=0.9,ext_path=$ext_path:64m,slab_automove=0,ext_compact_under=1");
my $sock = $server->sock; my $sock = $server->sock;
eval {
my $server = new_memcached("-o ext_path=$ext_path:64m");
};
ok($@, "failed to start a second server with the same file path");
# Wait until all items have flushed # Wait until all items have flushed
sub wait_for_ext { sub wait_for_ext {
my $target = shift || 0; my $target = shift || 0;
my $sum = $target + 1; my $sum = $target + 1;
while ($sum > $target) { while ($sum > $target) {
my $s = mem_stats($sock, "items"); my $s = mem_stats($sock, "items");
$sum = 0; $sum = 0;
for my $key (keys %$s) { for my $key (keys %$s) {
if ($key =~ m/items:(\d+):number/) { if ($key =~ m/items:(\d+):number/) {
# Ignore classes which can contain extstore items # Ignore classes which can contain extstore items
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)