~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to storage/ndb/src/mgmapi/mgmapi.cpp

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
3335
3335
  }
3336
3336
 
3337
3337
  BaseString encoded;
3338
 
  encoded.assfmt("%*s", base64_needed_encoded_length(buf.length()), "Z");
 
3338
  /*
 
3339
    The base64 encoded data of BaseString can be of max length (1024*1024)/3*4
 
3340
    hence using int to store the length.
 
3341
  */
 
3342
  encoded.assfmt("%*s", (int)base64_needed_encoded_length(buf.length()), "Z");
3339
3343
  (void) base64_encode(buf.get_data(), buf.length(), (char*)encoded.c_str());
3340
3344
 
3341
3345
  Properties args;