Skip to content
Snippets Groups Projects
  1. Oct 12, 2017
  2. Oct 11, 2017
    • Vladislav Shpilevoy's avatar
      66f57bfd
    • Vladimir Davydov's avatar
      recovery: do not rescan last xlog · b25c60f0
      Vladimir Davydov authored
      If EOF is reached, recover_remaining_wals() closes recovery->cursor.
      The next time it is called, it looks up the next xlog to scan with
      vclockset_match(), but the latter will return vclock of the last
      scanned xlog unless a new xlog has appeared since the last call.
      As a result, the last xlog is scanned three times during recovery:
      by recover_follow_local(), hot_standby_f(), and recovery_finalize().
      To fix that, let's make recover_remaining_wals() start recovery from
      recovery->vclock if it reached EOF while reading the last xlog.
      
      Closes #2768
      b25c60f0
    • Vladimir Davydov's avatar
      xlog: introduce helpers to check cursor state · 8d880f6a
      Vladimir Davydov authored
      It isn't a good practice to access xlog_cursor::state directly, because
      it may include implementation-specific states, e.g. we might want to
      differentiate CLOSED_AFTER_EOF and CLOSED_WITHOUT_EOF or CLOSED and
      NOT_YET_OPENED (see the next patch). Let's introduce convenient helpers
      to check if a cursor is open and if it reached EOF and use them outside
      xlog.c.
      
      Needed for #2768
      8d880f6a
    • Alexandr Lyapunov's avatar
      Support of column names in index definition · 47c2fe45
      Alexandr Lyapunov authored
      Allow long with field_no pass field_name for index creation
      (alteration) routines.
      
      Add new method of defining indexes:
       - parts = { {field = field_name1, type = field_type}, {field = field_name2, type = field_type}, ...}
       - parts = { {field_name1, field_type}, {field_name2, field_type}, ...}
       - parts = { {field_name1}, {field_name2}, ...}
       - parts = {field_name1, field_name2}
       - parts = {field_id, field_id}
      
      Fix 2814
      47c2fe45
    • Alexandr Lyapunov's avatar
      Extend space format definition syntax · c0b76209
      Alexandr Lyapunov authored
      In addition to current syntax of space fileds format definition:
       - space:format({{name='field_id', type='integer'}, ...})
      
      Add more ways to define it:
       - space:format({{'field_name', 'integer'}, ...})
       - space:format({{'field_name', type='integer'}, ...})
       - space:format({{'field_name'}, ...})
       - space:format({'field_name', ...})
      
      Fix #2815
      c0b76209
    • Roman Tsisyk's avatar
      Fix "Failed to initialize collation" · 91b2dd4c
      Roman Tsisyk authored
      ucol_open() expects null-terminated string.
      GCC doesn't initialize locale name buffer in RelWithDebInfo.
      
      Fixes #2819
      91b2dd4c
  3. Oct 10, 2017
    • Alexandr Lyapunov's avatar
      Fix collation test on some platforms and disable collation in vinyl · 2097908f
      Alexandr Lyapunov authored
      It is appeared that ICU v50 supports CLRD-22 when ICU v51+ supports
      CLRD-23+. One of the CLRD-23 changes comparing to CLRD-22 is
      local script collates before other scripts. In general that means
      that having different ICU version we get different order with
      non-Latin locales. The main problem is that a run that was sorted
      with one version of tarantool becomes unsorted in another.
      
      Fix tests that depends on that order and disable collation in vinyl.
      2097908f
  4. Oct 09, 2017
  5. Oct 06, 2017
  6. Oct 05, 2017
Loading