Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
forge001
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
forge001
Commits
2c90d6ef
Commit
2c90d6ef
authored
6 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
fixed a few deprecation warnings
parent
cdcffdfc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
textarchive/lib/TA/ObjReg.pm
+6
-6
6 additions, 6 deletions
textarchive/lib/TA/ObjReg.pm
textarchive/lib/md5cat.pm
+1
-1
1 addition, 1 deletion
textarchive/lib/md5cat.pm
with
7 additions
and
7 deletions
textarchive/lib/TA/ObjReg.pm
+
6
−
6
View file @
2c90d6ef
...
...
@@ -157,7 +157,7 @@ sub get_project
print
"
new seq:
",
main::
Dumper
(
$seq
);
# if ($be eq 'MongoDB')
# {
# $obj->{'_maint'}->insert ( { 'an' => 'seq', 'av' => $seq } );
# $obj->{'_maint'}->insert
_one
( { 'an' => 'seq', 'av' => $seq } );
# }
# else
# {
...
...
@@ -279,7 +279,7 @@ sub save
}
# print "new_reg: ", main::Dumper ($new_reg);
$obj
->
{'
_cat
'}
->
updat
e
(
$search
,
$new_reg
,
{
'
upsert
'
=>
1
}
);
$obj
->
{'
_cat
'}
->
replace_on
e
(
$search
,
$new_reg
,
{
'
upsert
'
=>
1
}
);
}
}
...
...
@@ -295,7 +295,7 @@ sub mdb_get_seq_for_key
return
$kv
->
{'
seq
'}
if
(
defined
(
$kv
));
$s
->
{'
seq
'}
=
my
$seq
=
$obj
->
next_seq
();
$k
->
insert
(
$s
);
$k
->
insert
_one
(
$s
);
$seq
;
}
...
...
@@ -373,7 +373,7 @@ sub load_single_toc
my
$cache
=
shift
;
# TODO: what is that intended for??
my
$path_list
=
shift
;
# print __LINE__, " load_single_toc: store=[$store] path_list=[$path_list]\n";
# print __LINE__,
' ', scalar localtime(time()),
" load_single_toc: store=[$store] path_list=[$path_list]\n";
if
((
my
$be
=
$reg
->
{'
cfg
'}
->
{'
backend
'})
eq
'
TA::Hasher
')
{
my
$c
=
$reg
->
{'
proj_cat
'};
...
...
@@ -657,7 +657,7 @@ sub remove_from_store
{
my
(
$id_str
,
$path
)
=
@$item
;
print
"
drop: key=[
$id_str
] store=[
$store
] path=[
$path
]
\n
";
$_cat
->
remove
(
{
'
key
'
=>
$id_str
,
'
type
'
=>
$objreg
->
{'
key
'},
$_cat
->
remove
_one
(
{
'
key
'
=>
$id_str
,
'
type
'
=>
$objreg
->
{'
key
'},
'
store
'
=>
$store
,
'
path
'
=>
$path
}
);
}
return
{};
# TODO: TA::Hasher variant returns dropped items
...
...
@@ -905,7 +905,7 @@ sub _save_seq
}
else
{
$reg
->
{'
_maint
'}
->
updat
e
(
{
'
an
'
=>
'
seq
'
},
{
'
an
'
=>
'
seq
',
'
av
'
=>
$reg
->
{'
seq
'}
},
{
'
upsert
'
=>
1
}
);
$reg
->
{'
_maint
'}
->
replace_on
e
(
{
'
an
'
=>
'
seq
'
},
{
'
an
'
=>
'
seq
',
'
av
'
=>
$reg
->
{'
seq
'}
},
{
'
upsert
'
=>
1
}
);
}
}
...
...
This diff is collapsed.
Click to expand it.
textarchive/lib/md5cat.pm
+
1
−
1
View file @
2c90d6ef
...
...
@@ -134,7 +134,7 @@ sub read_flist
my
$md5cat
=
shift
;
my
$fnm
=
shift
;
print
"
reading reference list: [
$fnm
]
\n
";
print
scalar
localtime
(
time
()),
"
reading reference list: [
$fnm
]
\n
";
unless
(
open
(
FI
,
$fnm
))
{
print
__LINE__
,
"
could not open '
$fnm
'!
\n
";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment