Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
020e50dc
Commit
020e50dc
authored
May 06, 2015
by
Giorgos Korfiatis
Browse files
cleanup probing
parent
1cf8ae7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
agkyra/agkyra/syncer/localfs_client.py
View file @
020e50dc
...
...
@@ -505,9 +505,7 @@ class LocalfsFileClient(FileClient):
final_part
=
parts
[
-
1
]
return
exclude_pattern
.
match
(
final_part
)
def
start_probing_file
(
self
,
objname
,
old_state
,
ref_state
,
assumed_info
=
None
,
callback
=
None
):
def
start_probing_file
(
self
,
objname
,
old_state
,
ref_state
,
callback
=
None
):
cached_info
=
self
.
probe_candidates
.
pop
(
objname
)
if
self
.
exclude_file
(
objname
):
logger
.
warning
(
"Ignoring probe archive: %s, object: %s"
%
...
...
agkyra/agkyra/syncer/pithos_client.py
View file @
020e50dc
...
...
@@ -325,9 +325,7 @@ class PithosFileClient(FileClient):
PITHOS_TYPE
:
p_type
,
}
def
start_probing_file
(
self
,
objname
,
old_state
,
ref_state
,
assumed_info
=
None
,
callback
=
None
):
def
start_probing_file
(
self
,
objname
,
old_state
,
ref_state
,
callback
=
None
):
info
=
old_state
.
info
cached_info
=
self
.
probe_candidates
.
pop
(
objname
)
if
exclude_pattern
.
match
(
objname
):
...
...
agkyra/agkyra/syncer/syncer.py
View file @
020e50dc
...
...
@@ -97,7 +97,7 @@ class FileSyncer(object):
return
self
.
messager
.
get
(
block
=
block
)
@
transaction
()
def
probe_file
(
self
,
archive
,
objname
,
assumed_info
=
None
):
def
probe_file
(
self
,
archive
,
objname
):
logger
.
info
(
"Probing archive: %s, object: '%s'"
%
(
archive
,
objname
))
db
=
self
.
get_db
()
client
=
self
.
clients
[
archive
]
...
...
@@ -116,7 +116,6 @@ class FileSyncer(object):
"object: '%s'"
%
(
archive
,
objname
))
return
client
.
start_probing_file
(
objname
,
db_state
,
ref_state
,
assumed_info
=
assumed_info
,
callback
=
self
.
update_file_state
)
@
transaction
()
...
...
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