Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:use a more sensible default memmap size (128kb)
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1a645986ae7ef0c1f579088389308a635dd580de
User & Date: brandon 2016-05-27 19:38:03
Context
2016-05-27
19:58
Clean up more warnings in zdbc * zdbc.c (parse_opt): Correct a long-standing bug in setting the mmap_size and num_buckets. Clean up warnings. Set a more sensible default memmap size (128KiB). check-in: c96b0c4ae3 user: brandon tags: trunk
19:38
use a more sensible default memmap size (128kb) check-in: 1a645986ae user: brandon tags: trunk
19:36
fix bug in setting the mmap size check-in: e9d74ac51e user: brandon tags: trunk
Changes

Changes to src/zdbc.c.

78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
          arguments->num_buckets = (size_t)size;
        }
      break;
    case 'l':
      arguments->no_lock = true;
      break;
    case 'm':
      size = arg ? strtoul (arg, NULL, 10) : 1024;
      if (size > SIZE_MAX)
        {
          arguments->mmap_size = SIZE_MAX;
        }
      else
        {
          arguments->mmap_size = (size_t)size;







|







78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
          arguments->num_buckets = (size_t)size;
        }
      break;
    case 'l':
      arguments->no_lock = true;
      break;
    case 'm':
      size = arg ? strtoul (arg, NULL, 10) : 131072UL;
      if (size > SIZE_MAX)
        {
          arguments->mmap_size = SIZE_MAX;
        }
      else
        {
          arguments->mmap_size = (size_t)size;