Skip to content

Instantly share code, notes, and snippets.

From 3f592f4a7a380daeecfcdf5e3ac45c67d0b3c087 Mon Sep 17 00:00:00 2001
From: Cyrill Gorcunov <gorcunov@gmail.com>
Date: Mon, 28 Dec 2020 22:24:08 +0300
Subject: [PATCH] crash: allow to build on non x86-64 machines
The general purpose registers were optional earlier
lets make them optional back allowing the code to
be compiled on non x86-64 machines.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
test_run = require('test_run').new()
engine = test_run:get_cfg('engine')
box.schema.user.grant('guest', 'replication')
-- Test syntax error
box.cfg{replication_synchro_quorum = "aaa"}
-- Make sure we were configured in a proper way
box.cfg { replication_synchro_quorum = "N/2+1", replication_synchro_timeout = 1000 }
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static void swap(int *a, ssize_t i, ssize_t j)
{
int v = a[i];
a[i] = a[j],
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.0-rc4 Kernel Configuration
#
#
# Compiler: gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2)
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80301