Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ec786c6c
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ec786c6c
编写于
6月 27, 2012
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
I neglected many comments in the log+seg -> 64-bit segno patch. Fix.
Reported by Amit Kapila.
上级
7700b82e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+6
-6
src/backend/replication/walreceiver.c
src/backend/replication/walreceiver.c
+1
-1
未找到文件。
src/backend/access/transam/xlog.c
浏览文件 @
ec786c6c
...
...
@@ -2479,7 +2479,7 @@ XLogFileInit(XLogSegNo logsegno, bool *use_existent, bool use_lock)
/*
* Create a new XLOG file segment by copying a pre-existing one.
*
*
log, seg
: identify segment to be created.
*
destsegno
: identify segment to be created.
*
* srcTLI, srclog, srcseg: identify segment to be copied (could be from
* a different timeline)
...
...
@@ -2582,8 +2582,8 @@ XLogFileCopy(XLogSegNo destsegno, TimeLineID srcTLI, XLogSegNo srcsegno)
* This is used both to install a newly-created segment (which has a temp
* filename while it's being created) and to recycle an old segment.
*
* *
log, *seg
: identify segment to install as (or first possible target).
* When find_free is TRUE, th
ese are
modified on return to indicate the
* *
segno
: identify segment to install as (or first possible target).
* When find_free is TRUE, th
is is
modified on return to indicate the
* actual installation location or last segment searched.
*
* tmppath: initial name of file to install. It will be renamed into place.
...
...
@@ -3317,7 +3317,7 @@ PreallocXlogFiles(XLogRecPtr endptr)
}
/*
* Get the
log/seg
of the latest removed or recycled WAL segment.
* Get the
segno
of the latest removed or recycled WAL segment.
* Returns 0/0 if no WAL segments have been removed since startup.
*/
void
...
...
@@ -3332,7 +3332,7 @@ XLogGetLastRemoved(XLogSegNo *segno)
}
/*
* Update the last removed
log/seg
pointer in shared memory, to reflect
* Update the last removed
segno
pointer in shared memory, to reflect
* that the given XLOG file has been removed.
*/
static
void
...
...
@@ -3352,7 +3352,7 @@ UpdateLastRemovedPtr(char *filename)
}
/*
* Recycle or remove all log files older or equal to passed
log/seg#
* Recycle or remove all log files older or equal to passed
segno
*
* endptr is current (or recent) end of xlog; this is used to determine
* whether we want to recycle rather than delete no-longer-wanted log files.
...
...
src/backend/replication/walreceiver.c
浏览文件 @
ec786c6c
...
...
@@ -68,7 +68,7 @@ walrcv_disconnect_type walrcv_disconnect = NULL;
#define NAPTIME_PER_CYCLE 100
/* max sleep time between cycles (100ms) */
/*
* These variables are used similarly to openLogFile/
Id/Seg
/Off,
* These variables are used similarly to openLogFile/
SegNo
/Off,
* but for walreceiver to write the XLOG. recvFileTLI is the TimeLineID
* corresponding the filename of recvFile, used for error messages.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录