Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
d637308c
Commit
d637308c
authored
Jan 21, 2009
by
Quanah Gibson-Mount
Browse files
make messages more esplicative; fix style
parent
d6081091
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb/dn2id.c
View file @
d637308c
...
...
@@ -89,8 +89,11 @@ bdb_dn2id_add(
/* store it -- don't override */
rc
=
db
->
put
(
db
,
txn
,
&
key
,
&
data
,
DB_NOOVERWRITE
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"=> bdb_dn2id_add 0x%lx: put failed: %s %d
\n
"
,
e
->
e_id
,
db_strerror
(
rc
),
rc
);
char
buf
[
SLAP_TEXT_BUFLEN
];
snprintf
(
buf
,
sizeof
(
buf
),
"%s => bdb_dn2id_add dn=
\"
%s
\"
ID=0x%lx"
,
op
->
o_log_prefix
,
e
->
e_name
.
bv_val
,
e
->
e_id
);
Debug
(
LDAP_DEBUG_ANY
,
"%s: put failed: %s %d
\n
"
,
buf
,
db_strerror
(
rc
),
rc
);
goto
done
;
}
...
...
servers/slapd/back-bdb/modify.c
View file @
d637308c
...
...
@@ -287,11 +287,11 @@ int bdb_modify_internal(
rc
=
bdb_index_values
(
op
,
tid
,
ap
->
a_desc
,
vals
,
e
->
e_id
,
SLAP_INDEX_DELETE_OP
);
if
(
rc
!=
LDAP_SUCCESS
)
{
Debug
(
LDAP_DEBUG_ANY
,
"%s: attribute
\"
%s
\"
index delete failure
\n
"
,
op
->
o_log_prefix
,
ap
->
a_desc
->
ad_cname
.
bv_val
,
0
);
attrs_free
(
e
->
e_attrs
);
e
->
e_attrs
=
save_attrs
;
Debug
(
LDAP_DEBUG_ANY
,
"Attribute index delete failure"
,
0
,
0
,
0
);
return
rc
;
}
}
...
...
@@ -306,11 +306,11 @@ int bdb_modify_internal(
ap
->
a_nvals
,
e
->
e_id
,
SLAP_INDEX_ADD_OP
);
if
(
rc
!=
LDAP_SUCCESS
)
{
Debug
(
LDAP_DEBUG_ANY
,
"%s: attribute
\"
%s
\"
index add failure
\n
"
,
op
->
o_log_prefix
,
ap
->
a_desc
->
ad_cname
.
bv_val
,
0
);
attrs_free
(
e
->
e_attrs
);
e
->
e_attrs
=
save_attrs
;
Debug
(
LDAP_DEBUG_ANY
,
"Attribute index add failure"
,
0
,
0
,
0
);
return
rc
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment