Skip to content

Commit

Permalink
memcached: do not used deprecated API
Browse files Browse the repository at this point in the history
in 8038c13, lw_shared_ptr operator=(T&&)
was deprecated. but since we don't build apps when performing CI or
general testing. this caller was not updated in that very change.

when compiling the whole tree, this deprecated warning was identified.
so let's fix it.

Signed-off-by: Kefu Chai <[email protected]>

Closes scylladb#1720
  • Loading branch information
tchaikov authored and xemul committed Jul 7, 2023
1 parent 18f43a0 commit da23228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/memcached/memcache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ class tcp_server {
void start() {
listen_options lo;
lo.reuse_address = true;
_listener = seastar::server_socket(seastar::listen(make_ipv4_address({_port}), lo));
_listener = make_lw_shared<seastar::server_socket>(seastar::listen(make_ipv4_address({_port}), lo));
// Run in the background until eof has reached on the input connection.
_task = keep_doing([this] {
return _listener->accept().then([this] (accept_result ar) mutable {
Expand Down

0 comments on commit da23228

Please sign in to comment.