Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Open VDS
Commits
5324d36d
Commit
5324d36d
authored
Oct 27, 2021
by
Jim King
Committed by
Jørgen Lind
Oct 28, 2021
Browse files
fix comments
parent
04a4c2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/SEGYImport/SEGYImport.cpp
View file @
5324d36d
...
...
@@ -3597,12 +3597,9 @@ main(int argc, char* argv[])
auto
&
chunkInfo
=
chunkInfos
[
chunk
];
// if we've crossed to a new
inlin
e then trim the trace page cache
// if we've crossed to a new
primary key rang
e then trim the trace page cache
if
(
chunk
>
0
)
{
// TODO alternate versions for offset sorted and crossline sorted
const
auto
&
previousChunkInfo
=
chunkInfos
[
chunk
-
1
];
for
(
size_t
chunkFileIndex
=
0
;
chunkFileIndex
<
dataProviders
.
size
();
++
chunkFileIndex
)
...
...
@@ -3613,12 +3610,12 @@ main(int argc, char* argv[])
auto
currentIndexIter
=
chunkInfo
.
lowerUpperSegmentIndices
.
find
(
chunkFileIndex
);
if
(
currentIndexIter
!=
chunkInfo
.
lowerUpperSegmentIndices
.
end
())
{
// This file is active in both the current and previous chunks. Check to see if we've progressed to a new set of
inline
s.
// This file is active in both the current and previous chunks. Check to see if we've progressed to a new set of
primary key
s.
auto
previousLowerSegmentIndex
=
std
::
get
<
0
>
(
prevIndexIter
->
second
);
auto
currentLowerSegmentIndex
=
std
::
get
<
0
>
(
currentIndexIter
->
second
);
if
(
currentLowerSegmentIndex
>
previousLowerSegmentIndex
)
{
// we've progressed to a new set of
inline
s; remove earlier pages from the cache
// we've progressed to a new set of
primary key
s; remove earlier pages from the cache
traceDataManagers
[
chunkFileIndex
].
retirePagesBefore
(
fileInfo
.
m_segmentInfoLists
[
chunkFileIndex
][
currentLowerSegmentIndex
].
m_traceStart
);
}
}
...
...
Write
Preview
Supports
Markdown
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