Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
938db048
Commit
938db048
authored
Sep 03, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove os0proc.*
parent
48ab5a49
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
11 additions
and
107 deletions
+11
-107
extra/mariabackup/write_filt.cc
extra/mariabackup/write_filt.cc
+0
-1
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+0
-2
storage/innobase/include/buf0buf.h
storage/innobase/include/buf0buf.h
+0
-1
storage/innobase/include/os0proc.h
storage/innobase/include/os0proc.h
+0
-50
storage/innobase/include/ut0new.h
storage/innobase/include/ut0new.h
+5
-2
storage/innobase/os/os0proc.cc
storage/innobase/os/os0proc.cc
+0
-45
storage/innobase/pars/lexyy.cc
storage/innobase/pars/lexyy.cc
+0
-1
storage/innobase/pars/pars0lex.l
storage/innobase/pars/pars0lex.l
+0
-1
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+0
-1
storage/innobase/srv/srv0start.cc
storage/innobase/srv/srv0start.cc
+2
-2
storage/innobase/trx/trx0trx.cc
storage/innobase/trx/trx0trx.cc
+0
-1
storage/innobase/ut/ut0new.cc
storage/innobase/ut/ut0new.cc
+4
-0
No files found.
extra/mariabackup/write_filt.cc
View file @
938db048
...
...
@@ -28,7 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
#include "write_filt.h"
#include "fil_cur.h"
#include "xtrabackup.h"
#include <os0proc.h>
/************************************************************************
Write-through page write filter. */
...
...
storage/innobase/CMakeLists.txt
View file @
938db048
...
...
@@ -190,7 +190,6 @@ SET(INNOBASE_SOURCES
include/os0event.h
include/os0file.h
include/os0file.ic
include/os0proc.h
include/os0thread.h
include/page0cur.h
include/page0cur.ic
...
...
@@ -296,7 +295,6 @@ SET(INNOBASE_SOURCES
mem/mem0mem.cc
mtr/mtr0mtr.cc
os/os0file.cc
os/os0proc.cc
os/os0event.cc
os/os0thread.cc
page/page0cur.cc
...
...
storage/innobase/include/buf0buf.h
View file @
938db048
...
...
@@ -40,7 +40,6 @@ Created 11/5/1995 Heikki Tuuri
#include "ut0byte.h"
#include "page0types.h"
#include "ut0rbt.h"
#include "os0proc.h"
#include "log0log.h"
#include "srv0srv.h"
#include <ostream>
...
...
storage/innobase/include/os0proc.h
deleted
100644 → 0
View file @
48ab5a49
/*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
*****************************************************************************/
/**************************************************//**
@file include/os0proc.h
The interface to the operating system
process control primitives
Created 9/30/1995 Heikki Tuuri
*******************************************************/
#ifndef os0proc_h
#define os0proc_h
#include "univ.i"
#ifdef UNIV_LINUX
#include <sys/ipc.h>
#include <sys/shm.h>
#endif
typedef
void
*
os_process_t
;
typedef
unsigned
long
int
os_process_id_t
;
/** The total amount of memory currently allocated from the operating
system with allocate_large(). */
extern
Atomic_counter
<
ulint
>
os_total_large_mem_allocated
;
/** Converts the current process id to a number.
@return process id as a number */
ulint
os_proc_get_number
(
void
);
#endif
storage/innobase/include/ut0new.h
View file @
938db048
/*****************************************************************************
Copyright (c) 2014, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 20
19
, MariaDB Corporation.
Copyright (c) 2017, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -137,7 +137,6 @@ with (), thus:
#include "mysql/psi/psi_memory.h"
/* PSI_memory_key, PSI_memory_info */
#include "os0thread.h"
/* os_thread_sleep() */
#include "os0proc.h"
/* os_total_large_mem_allocated */
#include "ut0ut.h"
/* ut_strcmp_functor, ut_basename_noext() */
#define OUT_OF_MEMORY_MSG \
...
...
@@ -145,6 +144,10 @@ with (), thus:
" operating system. Note that on most 32-bit computers the process" \
" memory space is limited to 2 GB or 4 GB."
/** The total amount of memory currently allocated from the operating
system with allocate_large() */
extern
Atomic_counter
<
ulint
>
os_total_large_mem_allocated
;
/** Maximum number of retries to allocate memory. */
extern
const
size_t
alloc_max_retries
;
...
...
storage/innobase/os/os0proc.cc
deleted
100644 → 0
View file @
48ab5a49
/*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2019, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
*****************************************************************************/
/**************************************************//**
@file os/os0proc.cc
The interface to the operating system
process control primitives
Created 9/30/1995 Heikki Tuuri
*******************************************************/
#include "univ.i"
/** The total amount of memory currently allocated from the operating
system with allocacte_large(). */
Atomic_counter
<
ulint
>
os_total_large_mem_allocated
;
/** Converts the current process id to a number.
@return process id as a number */
ulint
os_proc_get_number
(
void
)
/*====================*/
{
#ifdef _WIN32
return
(
static_cast
<
ulint
>
(
GetCurrentProcessId
()));
#else
return
(
static_cast
<
ulint
>
(
getpid
()));
#endif
}
storage/innobase/pars/lexyy.cc
View file @
938db048
...
...
@@ -816,7 +816,6 @@ Created 12/14/1997 Heikki Tuuri
#include "pars0grm.h"
#include "pars0sym.h"
#include "mem0mem.h"
#include "os0proc.h"
#define malloc(A) ut_malloc_nokey(A)
#define free(A) ut_free(A)
...
...
storage/innobase/pars/pars0lex.l
View file @
938db048
...
...
@@ -58,7 +58,6 @@ Created 12/14/1997 Heikki Tuuri
#include "pars0grm.h"
#include "pars0sym.h"
#include "mem0mem.h"
#include "os0proc.h"
#define malloc(A) ut_malloc_nokey(A)
#define free(A) ut_free(A)
...
...
storage/innobase/srv/srv0srv.cc
View file @
938db048
...
...
@@ -55,7 +55,6 @@ Created 10/8/1995 Heikki Tuuri
#include "lock0lock.h"
#include "log0recv.h"
#include "mem0mem.h"
#include "os0proc.h"
#include "pars0pars.h"
#include "que0que.h"
#include "row0mysql.h"
...
...
storage/innobase/srv/srv0start.cc
View file @
938db048
...
...
@@ -76,7 +76,6 @@ Created 2/16/1996 Heikki Tuuri
#include "btr0defragment.h"
#include "mysql/service_wsrep.h"
/* wsrep_recovery */
#include "trx0rseg.h"
#include "os0proc.h"
#include "buf0flu.h"
#include "buf0rea.h"
#include "dict0boot.h"
...
...
@@ -1241,7 +1240,8 @@ dberr_t srv_start(bool create_new_db)
sprintf
(
srv_monitor_file_name
,
"%s/innodb_status."
ULINTPF
,
fil_path_to_mysql_datadir
,
os_proc_get_number
());
static_cast
<
ulint
>
(
IF_WIN
(
GetCurrentProcessId
(),
getpid
())));
srv_monitor_file
=
my_fopen
(
srv_monitor_file_name
,
O_RDWR
|
O_TRUNC
|
O_CREAT
,
...
...
storage/innobase/trx/trx0trx.cc
View file @
938db048
...
...
@@ -35,7 +35,6 @@ Created 3/26/1996 Heikki Tuuri
#include "btr0sea.h"
#include "lock0lock.h"
#include "log0log.h"
#include "os0proc.h"
#include "que0que.h"
#include "srv0mon.h"
#include "srv0srv.h"
...
...
storage/innobase/ut/ut0new.cc
View file @
938db048
...
...
@@ -26,6 +26,10 @@ Created May 26, 2014 Vasil Dimov
#include "univ.i"
#include <algorithm>
/** The total amount of memory currently allocated from the operating
system with allocate_large(). */
Atomic_counter
<
ulint
>
os_total_large_mem_allocated
;
/** Maximum number of retries to allocate memory. */
const
size_t
alloc_max_retries
=
60
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment