mmap2 2.2.9alpha3 → 2.2.9alpha4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75a847980e507ef08fc88cf873c7556793bf8e97
4
- data.tar.gz: 5f950294eb6ce64835528604d31d933bff8fa44e
3
+ metadata.gz: dca7a218ae263697740dad4a0e4e06d06ad447a9
4
+ data.tar.gz: ed857acb2e5d7009dbfc395ba932663df1f6f462
5
5
  SHA512:
6
- metadata.gz: 140cc6a4a2101319c66795c8af3d64c38639cc3b8996bacc05f8fce6dedea1f9ba476238cab0be54a72c288e53480fcf37e9558bc98edee5c0737122b628a410
7
- data.tar.gz: b2e4fdf3129f1b50c819a44a4a4088f25d3e65091e5abc7ac0a56c108a4740ea81ad7460168fe729f1eb7e268110798bf64dc1ebc229483b362d4349f3e5eebc
6
+ metadata.gz: 2db8ffa0e4e01156969d7c16a0059bb0c8b5fb5ecdc4022fa524e5e60d384baae3be38df681f62572b66d3a5c124cc24e2e644fcc5c5bbbf6ffd285871e9d337
7
+ data.tar.gz: 0dd996c75a92bd419558a4469aeb2400c1946d0be023bcf2021837071e852053cb2e8769c0f10f96452d5c8635bac7bb74600434904f47954b8cb99d54ae4ebe
@@ -381,6 +381,7 @@ static VALUE mm_i_expand(st_mm) mm_st *st_mm;
381
381
  if ((fd = open(i_mm->t->path, i_mm->t->smode)) == -1) {
382
382
  rb_raise(rb_eArgError, "Can't open %s", i_mm->t->path);
383
383
  }
384
+ DEBUGF("mm_i_expand: old len %d, new len %d", i_mm->t->len, len);
384
385
  if (len > i_mm->t->len) {
385
386
  if (lseek(fd, len - i_mm->t->len - 1, SEEK_END) == -1) {
386
387
  rb_raise(rb_eIOError, "Can't lseek %lu", len - i_mm->t->len - 1);
@@ -406,6 +407,7 @@ static VALUE mm_i_expand(st_mm) mm_st *st_mm;
406
407
  rb_raise(rb_eArgError, "mlock(%d)", errno);
407
408
  }
408
409
  i_mm->t->len = len;
410
+ DEBUGF("mm_i_expand: new len %d", i_mm->t->len);
409
411
  return Qnil;
410
412
  }
411
413
 
@@ -1,5 +1,5 @@
1
1
  # Version of mmap2.
2
2
 
3
3
  class Mmap
4
- VERSION = '2.2.9alpha3'
4
+ VERSION = '2.2.9alpha4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmap2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.9alpha3
4
+ version: 2.2.9alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Decoux