File tree 31 files changed +128
-35
lines changed
deps/fast_float_c_interface
31 files changed +128
-35
lines changed Original file line number Diff line number Diff line change 1
1
# License 1
2
2
3
+ SPDX-License-Identifier: BSD-3-Clause
4
+
3
5
BSD 3-Clause License
4
6
5
7
Copyright (c) 2024-present, Valkey contributors
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
4
+ * SPDX-License-Identifier: BSD- 3-Clause
5
5
*/
6
6
7
7
#include " ../fast_float/fast_float.h"
Original file line number Diff line number Diff line change 1
- /* Copyright 2024- Valkey contributors
1
+ /*
2
+ * Copyright (c) Valkey Contributors
2
3
* All rights reserved.
3
4
* SPDX-License-Identifier: BSD-3-Clause
4
5
*/
5
-
6
6
/*
7
7
* This file implements allocator-specific defragmentation logic used
8
8
* within the Valkey engine. Below is the relationship between various
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2009-2012, Redis Ltd.
3
- * Copyright (c) 2024, Valkey contributors
4
3
* All rights reserved.
5
4
*
6
5
* Redistribution and use in source and binary forms, with or without
27
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
27
* POSSIBILITY OF SUCH DAMAGE.
29
28
*/
30
-
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
31
34
const char * ascii_logo =
32
35
" .+^+. \n"
33
36
" .+#########+. \n"
Original file line number Diff line number Diff line change 26
26
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
28
* POSSIBILITY OF SUCH DAMAGE.
29
- *
30
- * ---------------------------------------------------------------------------
31
- *
29
+ */
30
+ /*
31
+ * Copyright (c) Valkey Contributors
32
+ * All rights reserved.
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
35
+ /*
32
36
* API:
33
37
*
34
38
* blockClient() set the CLIENT_BLOCKED flag in the client, and set the
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
-
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
30
34
/*
31
35
* cluster.c contains the common parts of a clustering
32
36
* implementation, the parts that are shared between
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
-
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
30
34
/*
31
35
* cluster_legacy.c contains the implementation of the cluster API that is
32
36
* specific to the standard, cluster-bus based clustering mechanism.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
4
+ * SPDX-License-Identifier: BSD- 3-Clause
5
5
*/
6
-
7
6
#include "cluster_slot_stats.h"
8
7
9
8
#define UNASSIGNED_SLOT 0
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) Valkey Contributors
3
+ * All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
1
7
/* Commandlog implements a system that is able to remember the latest N
2
8
* queries that took more than M microseconds to execute, or consumed
3
9
* too much network bandwidth and memory for input/output buffers.
14
20
* but is accessible thanks to the COMMANDLOG command.
15
21
*
16
22
* ----------------------------------------------------------------------------
17
- *
18
- * Copyright Valkey Contributors.
19
- * All rights reserved.
20
- * SPDX-License-Identifier: BSD 3-Clause
21
23
*/
22
24
23
25
#include "commandlog.h"
Original file line number Diff line number Diff line change 32
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
33
* POSSIBILITY OF SUCH DAMAGE.
34
34
*/
35
+ /*
36
+ * Copyright (c) Valkey Contributors
37
+ * All rights reserved.
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */
35
40
36
41
#include "server.h"
37
42
#include "hashtable.h"
Original file line number Diff line number Diff line change 32
32
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
33
* POSSIBILITY OF SUCH DAMAGE.
34
34
*/
35
-
35
+ /*
36
+ * Copyright (c) Valkey Contributors
37
+ * All rights reserved.
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */
36
40
#include "fmacros.h"
37
41
38
42
#include <stddef.h>
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
/*
31
36
* This file initializes the global LUA object and registers functions to call Valkey API from within the LUA language.
Original file line number Diff line number Diff line change 29
29
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
30
* POSSIBILITY OF SUCH DAMAGE.
31
31
*/
32
+ /*
33
+ * Copyright (c) Valkey Contributors
34
+ * All rights reserved.
35
+ * SPDX-License-Identifier: BSD-3-Clause
36
+ */
32
37
33
38
#include "server.h"
34
39
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
#include "functions.h"
31
36
#include "sds.h"
Original file line number Diff line number Diff line change 28
28
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
* POSSIBILITY OF SUCH DAMAGE.
30
30
*/
31
+ /*
32
+ * Copyright (c) Valkey Contributors
33
+ * All rights reserved.
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */
31
36
32
37
#include "server.h"
33
38
#include "intrinsics.h"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
4
+ * SPDX-License-Identifier: BSD- 3-Clause
5
5
*/
6
6
7
7
#include "io_threads.h"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
5
- *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ /*
6
7
* This file utilizes prefetching keys and data for multiple commands in a batch,
7
8
* to improve performance by amortizing memory access costs across multiple operations.
8
9
*/
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
/* --------------------------------------------------------------------------
31
36
* Modules API documentation information
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
#include "server.h"
31
36
#include "lzf.h" /* LZF compression library */
Original file line number Diff line number Diff line change 7
7
* the top-level directory.
8
8
* ==========================================================================
9
9
*/
10
+ /*
11
+ * Copyright (c) Valkey Contributors
12
+ * All rights reserved.
13
+ * SPDX-License-Identifier: BSD-3-Clause
14
+ */
10
15
11
16
#define VALKEYMODULE_CORE_MODULE
12
17
#include "server.h"
Original file line number Diff line number Diff line change 27
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
28
* POSSIBILITY OF SUCH DAMAGE.
29
29
*/
30
-
30
+ /*
31
+ * Copyright (c) Valkey Contributors
32
+ * All rights reserved.
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
31
35
32
36
#include "server.h"
33
37
#include "cluster.h"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*/
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
-
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
30
34
#include "server.h"
31
35
#include "monotonic.h"
32
36
#include "cluster.h"
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
#include "server.h"
31
36
#include <math.h>
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
#include "server.h"
31
36
#include "hashtable.h"
Original file line number Diff line number Diff line change 26
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
* POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
+ /*
30
+ * Copyright (c) Valkey Contributors
31
+ * All rights reserved.
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
29
34
30
35
#include "server.h"
31
36
#include <math.h> /* isnan(), isinf() */
Original file line number Diff line number Diff line change 27
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
28
* POSSIBILITY OF SUCH DAMAGE.
29
29
*/
30
-
30
+ /*
31
+ * Copyright (c) Valkey Contributors
32
+ * All rights reserved.
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
31
35
/*-----------------------------------------------------------------------------
32
36
* Sorted set API
33
37
*----------------------------------------------------------------------------*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
4
+ * SPDX-License-Identifier: BSD- 3-Clause
5
5
*/
6
6
7
7
#include <strings.h>
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright Valkey Contributors.
2
+ * Copyright (c) Valkey Contributors
3
3
* All rights reserved.
4
- * SPDX-License-Identifier: BSD 3-Clause
4
+ * SPDX-License-Identifier: BSD- 3-Clause
5
5
*/
6
6
7
-
8
7
#include "../valkey_strtod.h"
9
8
#include "errno.h"
10
9
#include "math.h"
Original file line number Diff line number Diff line change 27
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
28
* POSSIBILITY OF SUCH DAMAGE.
29
29
*/
30
-
30
+ /*
31
+ * Copyright (c) Valkey Contributors
32
+ * All rights reserved.
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
31
35
#include "fmacros.h"
32
36
33
37
#include <stdio.h>
You can’t perform that action at this time.
0 commit comments